import 'package:json_annotation/json_annotation.dart';

part 'tab_data_model.g.dart';


@JsonSerializable()
class TabDataModel extends Object {

  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'tag')
  String tag;

  @JsonKey(name: 'subList')
  List<SubList>? subList;

  TabDataModel(this.id,this.tag,this.subList,);

  factory TabDataModel.fromJson(Map<String, dynamic> srcJson) => _$TabDataModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$TabDataModelToJson(this);

}


@JsonSerializable()
class SubList extends Object {

  @JsonKey(name: 'id')
  String id;

  @JsonKey(name: 'tag')
  String tag;

  SubList(this.id,this.tag,);

  factory SubList.fromJson(Map<String, dynamic> srcJson) => _$SubListFromJson(srcJson);

  Map<String, dynamic> toJson() => _$SubListToJson(this);

}


